package org.dtrd.modules.food.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwFoods;

/**
 * <p>
 * 食材库
 * </p>
 *
 * @author QR
 * @since 2021-12-08
 */
@Getter
@Setter
@ApiModel(value = "食材详情", description = "食材库")
public class FoodDetail {

    private Integer dataId;


    @ApiModelProperty("EMS食材表")
    private Integer foodCategoryid;

    @ApiModelProperty("食材名称")
    private String foodName;

    @ApiModelProperty("重量（克）")
    private Float foodWeight;

    @ApiModelProperty("血糖生成指数")
    private Float foodGi;

    @ApiModelProperty("热量（kcal）")
    private Float foodKcal;

    @ApiModelProperty("蛋白质（克）")
    private Float foodProtein;

    @ApiModelProperty("脂肪（克）")
    private Float foodFat;

    @ApiModelProperty("碳水化合物（克）")
    private Float foodCho;

    @ApiModelProperty("营养价值")
    private String foodNutrient;

    @ApiModelProperty("抗糖贴士")
    private String foodSugarTip;

    @ApiModelProperty("对并发症的益处")
    private String foodComplicationGood;

    @ApiModelProperty("食材标签")
    private String foodTips;

    @ApiModelProperty("食材URL")
    private String foodUrl;

    @ApiModelProperty("食材图片")
    private String foodThumb;

    @ApiModelProperty("水分")
    private Float foodWater;

    @ApiModelProperty("维生素A")
    private Float foodVitaminA;

    @ApiModelProperty("维生素B1")
    private Float foodVitaminB1;

    @ApiModelProperty("维生素B2")
    private Float foodVitaminB2;

    @ApiModelProperty("维生素C")
    private Float foodVitaminC;

    @ApiModelProperty("维生素E")
    private Float foodVitaminE;

    @ApiModelProperty("烟酸")
    private Float foodNiacin;

    @ApiModelProperty("钠")
    private Float foodSodium;

    @ApiModelProperty("钙")
    private Float foodCalsium;

    @ApiModelProperty("铁")
    private Float foodIron;

    @ApiModelProperty("胆固醇")
    private Float foodCholesterol;

    @ApiModelProperty("膳食纤维")
    private Float foodDietaryFiber;

    @ApiModelProperty("来源ID")
    private Float foodSourceId;

    @ApiModelProperty("来源ID2017")
    private Float foodSourceId2;

    @ApiModelProperty("食材属性 0不显示  1 适宜 2 适量吃  3  宜不吃  ")
    private Integer foodPropertity;

    @ApiModelProperty("食材常见指数")
    private Integer foodPopularIndex;

    @ApiModelProperty("常见类型（可多选）：1-早餐,2-午餐,3-晚餐")
    private String foodCommonType;

    public FoodDetail parseFromPo(DtrdExtEmsYwFoods po) {
        dataId = po.getDataId();
        foodCategoryid = po.getFoodCategoryid();
        foodName = po.getFoodName();
        foodWeight = po.getFoodWeight();
        foodGi = po.getFoodGi();
        foodKcal = po.getFoodKcal();
        foodProtein = po.getFoodProtein();
        foodFat = po.getFoodFat();
        foodCho = po.getFoodCho();
        foodNutrient = po.getFoodNutrient();
        foodSugarTip = po.getFoodSugarTip();
        foodComplicationGood = po.getFoodComplicationGood();
        foodTips = po.getFoodTips();
        foodUrl = po.getFoodUrl();
        foodThumb = po.getFoodThumb();
        foodWater = po.getFoodWater();
        foodVitaminA = po.getFoodVitaminA();
        foodVitaminB1 = po.getFoodVitaminB1();
        foodVitaminB2 = po.getFoodVitaminB2();
        foodVitaminC = po.getFoodVitaminC();
        foodVitaminE = po.getFoodVitaminE();
        foodNiacin = po.getFoodNiacin();
        foodSodium = po.getFoodSodium();
        foodCalsium = po.getFoodCalsium();
        foodIron = po.getFoodIron();
        foodCholesterol = po.getFoodCholesterol();
        foodDietaryFiber = po.getFoodDietaryFiber();
        foodSourceId = po.getFoodSourceId();
        foodSourceId2 = po.getFoodSourceId2();
        foodPropertity = po.getFoodPropertity();
        foodPopularIndex = po.getFoodPopularIndex();
        foodCommonType = po.getFoodCommonType();
        return this;
    }
}
